import type { RouteRecordRaw } from "vue-router"

let routes: RouteRecordRaw[] =  [
    {
        path:'/home',
        component:() => import('@/views/Home/Home.vue'),
       
    },
    {
        path:'/login',
        component:() => import('@/views/Login/Login.vue'),
       
    },
    {
        path:'/listen',
        component: () => import('@/views/Listen/Listen.vue'),
       
    },
    {
        path:'/charts',
        component: () => import('@/views/Charts/Charts.vue'),
       
    },
   
    {
        path:'/category',
        component: () => import('@/views/Category/Category.vue'),
       
    },
    {
        name:'categorydetail',
        path:'/categorydetail/:id/:name?',
        component: () => import('@/views/CategoryDetail/CategoeyDetail.vue'),
       
        children:[
        
        ]
    },
    {
        path:'/so/:keyword',
        name:'so',
        component:() => import('@/views/So/So.vue'),
    },
    {
        path:'/album/:id',
        name:'album',
        component:() => import('@/views/Test/Test.vue'),
    },
    {
        path:'/sound/:id',
        name:'sound',
        component:() => import('@/views/Test/Test.vue'),
    },
    {
        path:'/user/:id',
        name:'user',
        component:() => import('@/views/Test/Test.vue'),
    },
    {
        path:'/',
        redirect:'/home'
    }

]

export default routes